.invest-button.ng-cloak
  .ready ng-show='opened.syndicate.behave == "ready"'
    button ng-controller='TalksController' ng-init='init(false)' ng-click='open_talk("project_talk", opened.project_id)' 投资约谈
  .need-login-button.invest-tips ng-show='opened.syndicate.behave == "need_login"'
    span 需要登录才能投资和领投,
    a.button href='/users/sign_in' 马上登录

  .need-be-investor.invest-tips ng-show='opened.syndicate.behave == "need_be_investor"'
    span 申请投资人后才能投资,
    a.button href='/investors/basic' 申请投资人资格

  button ng-show='opened.syndicate.behave == "need_leader"' ng-controller='TalksController' ng-init='init(false)' ng-click='open_talk("lead_talk", opened.id)' 领投约谈
  button ng-show='opened.syndicate.behave == "leader_confirming"' disabled=true 领投确认中
  button ng-show='opened.syndicate.behave == "leader_confirm"' ng-click='open_syndicate()' 我是领投人, 马上确认
  button ng-show='opened.syndicate.behave == "invest"' ng-click='open_syndicate()' 我要投资
  .add-button.invest-tips ng-show='opened.syndicate.behave =="add"' 
    span
      | 我已投资了: 
      | {{ opened.syndicate.already_money | nfcurrency }}
    button ng-click='open_syndicate()' 追加投资

script type='text/ng-template' id='syndicate.html'
  .row.invest-modal
    a.close-reveal-modal ng-click="cancel()" ×
    .small-12.columns
      h3 ng-show='behave() == "leader_confirm"' 领投确认
      h3 ng-show='behave() == "invest"' 投资给该项目
      h3 ng-show='behave() == "add"' 追加投资给该项目
      hr
      form ng-submit='syndicate()'

        div ng-show='behave() == "leader_confirm"'
          h4 融资信息确认
          .row
            .small-3.medium-2.columns
              label for="money" class="right inline" 融资数值
            .small-9.medium-10.columns
              .row.collapse
                .small-1.columns
                  span.prefix ¥
                .small-11.medium-8.large-6.end.columns
                  input type='text' id='money' ng-model='opened.money' readonly=''
          .row
            .small-3.medium-2.columns
              label for="share" class="right inline" 出让股份
            .small-9.medium-10.columns
              .row.collapse
                .small-10.medium-3.columns
                  input type='text' id='share' ng-model='opened.share' readonly=''
                .small-2.large-1.end.columns
                  span.postfix %
          .row
            .small-3.medium-2.columns
              label for='deadline' class="right inline" 融资周期
            .small-9.medium-10.columns
              .row.collapse
                .small-10.medium-3.columns
                  input type='text' id='deadline' ng-model='opened.deadline' readonly=''
                .small-2.large-1.end.columns
                  span.postfix 天
          .row
            .small-3.medium-2.columns
              label for='maxnp' class="right inline" 限制最大人数
            .small-9.medium-10.columns
              .row.collapse
                .small-10.medium-3.columns
                  input type='text' id='maxnp' ng-model='opened.maxnp' readonly=''
                .small-2.large-1.end.columns
                  span.postfix 人
          .row
            .small-9.small-offset-3.medium-10.medium-offset-2.columns
              p.alert 以上信息如与你线下谈的不一致, 请不要确认投资, 马上与创始人确认.

        h4 同意并启动一笔投资
        p.alert ng-show='hash.already_message'
          | {{ hash.already_message }}
          | {{ hash.already_money | nfcurrency }}
        p.min-money
          | 该项目的最低投资额为: {{ hash.min_money | nfcurrency }}
        .row.collapse
          .small-1.columns
            span.prefix ¥
          .small-11.medium-8.large-6.end.columns
            input type='text' ng-class='{ error: errors.money }' placeholder='投资金额' ng-model='hash.money'
            small.error ng-show=' errors.money '
              | {{ errors.money }}
        p.total-money ng-show='opened.syndicate.already_money'
          /*TODO money 显示*/
          | 你总的投资额将为:
          span 
            | {{ cal_total_money() || "0" | nfcurrency }}
        .row ng-show='behave() == "leader_confirm"'
          .small-12.medium-10.end.columns
            textarea ng-class='{ error: errors.leader_word }' placeholder='告诉潜在投资人为什么要投资这个项目' ng-model='hash.leader_word'

        p.alert ng-show='errors.money_require_id'
          | {{ errors.money_require_id }}
        ul.button-group
          li
            button
              | {{ hash.submit }}
          li ng-show='behave() == "leader_confirm"'
            button.secondary ng-click='leader_reject()'
              | 以上信息不正确或我不认识创始人, 我要拒绝
